package com.xiyu.service.enums.customer.follow;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 客户跟进资源类型
*/
@Getter
@AllArgsConstructor
public enum CustomerFollowResourceTypeEnum implements IntArrayValuable {

    /**
    * 图片
    */
    IMAGE(1, "图片"),
    /**
    * 附件
    */
    ATTACHMENT(2, "附件"),
    /**
    * 定位图片
    */
    POSITION_IMAGE(3, "定位图片");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(CustomerFollowResourceTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(CustomerFollowResourceTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
